<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>File Explorer</title>
</head>
<body>
<h1>File Explorer</h1>

<ul>
    <li th:each="file : ${files}">
        <a th:href="@{/preview/{filename}(filename=${#strings.replace(file.getPath(), '\\', '/')})}" th:text="${file.getName()}"></a>
    </li>
</ul>
</body>
</html>
